<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 2018/9/19
 * Time: 14:10
 */
?>

<div class="row">
    <div class="col-sm-12">
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <th>抛送时间</th>
                <th>抛送结果</th>
                <th>退回时间</th>
                <th style="max-width: 500px">退回原因</th>
                <th>master_name</th>
                <th>custom_id</th>
                <th>orderno</th>
            </tr>
            </thead>
            <tbody>
            <?php foreach ($data as $k => $v): ?>
                <?php
                if ($v['request_data']){
                    $x = $v['request_data'];
                    $x = unserialize($x);
                    if (isset($x['reqparam']))$x = $x['reqparam'];
                    $x = json_decode($x, true);
                    if (isset($x['req']['backnote']))$x = $x['req']['backnote'];
                }else{
                    $x = '';
                }
                ?>
                <tr>
                    <td><?=$v['抛送时间'] ?></td>
                    <td><?=$v['抛送结果'] ?></td>
                    <td><?=$v['退回时间'] ?></td>
                    <td style="max-width: 500px"><?=$x ?></td>
                    <td><?=$v['master_name'] ?></td>
                    <td><?=$v['custom_id'] ?></td>
                    <td><?=$v['orderno'] ?></td>
                </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
    </div>
</div>
